package com.mall.web.controller.org.app;

import com.mall.common.core.controller.BaseController;
import com.mall.common.core.domain.AjaxResult;
import com.mall.org.grades.domain.GradeDto;
import com.mall.org.grades.service.IGradesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 年级信息Controller
 * 
 * @author mall
 * @date 2024-05-04
 */
@RestController
@RequestMapping("/app/org/grades")
public class AppGradesController extends BaseController
{
    @Autowired
    private IGradesService gradesService;

    /**
     * 查询年级信息列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        GradeDto grades = new GradeDto();
        List<GradeDto> list = gradesService.selectGradesList(grades);
        return success(list);
    }

}
